package io.github.uicdb.et.fluid;

import io.github.uicdb.et.register.ElementalObject;
import io.github.uicdb.et.register.IElementalGetter;
import net.neoforged.neoforge.fluids.BaseFlowingFluid;

import java.util.stream.Stream;

public class ElementStream  {
    public static class Source extends BaseFlowingFluid.Source implements IElementalGetter {
        ElementalObject object;
        public Source(Properties properties) {
            super(properties);
        }

        @Override
        public ElementalObject getElementalObject() {
            return this.object;
        }

        @Override
        public void setElementalObject(ElementalObject elementalObject) {
            this.object = elementalObject;
        }
    }
    public static class Flowing extends BaseFlowingFluid.Flowing implements IElementalGetter {
        ElementalObject object;

        public Flowing(Properties properties) {
            super(properties);
        }

        @Override
        public ElementalObject getElementalObject() {
            return object;
        }

        @Override
        public void setElementalObject(ElementalObject elementalObject) {
            this.object = elementalObject;
        }
    }
}
